import { IForm } from '@/components/myForm/types/index';

export const formConfig: IForm = {
  formItems: [
    {
      label: '用户名',
      placeholder: '请输入用户名',
      key: 'name',
      type: 'input',
    },
    {
      label: '真实姓名',
      placeholder: '请输入真实姓名',
      key: 'realname',
      type: 'input',
    },
    {
      label: '电话号码',
      placeholder: '请输入电话号码',
      key: 'cellphone',
      type: 'input',
    },
    {
      label: '用户状态',
      placeholder: '请筛选用户状态',
      key: 'enable',
      type: 'select',

      options: [
        {
          label: '启用',
          value: 1,
        },
        {
          label: '禁用',
          value: 0,
        },
      ],
    },
    {
      label: '创建时间',
      placeholder: '请选择创建时间',
      key: 'createAt',
      type: 'datePicker',
      otherOptions: {
        type: 'daterange',
        startPlaceholder: '请选择开始时间',
        endPlaceholder: '请选择结束时间',
        format: 'YYYY-MM-DD ',
      },
    },
  ],
  labelWidth: '120px',
  // colLayout: {
  //   span: 8,
  // },
  itemStyle: {
    padding: '10px 40px',
  },
};
